/**
 * 
 */
package ccrClasses.layer1.alerts;

import java.util.ArrayList;
import java.util.List;

import ccrClasses.CCR;
import ccrClasses.ICcr;



/**
 * @author matheus
 *
 */
public class Alerts extends CCR implements ICcr{
	
	public static final String OPEN_TAG = "<Alerts>";

	public static final String CLOSE_TAG = "</Alerts>";
	
	private List<Alert> alertas;
	
	public Alerts() {
		super();
		alertas = new ArrayList<Alert>();
	}

	@Override
	public String constructCcrString() {
		String ccr = BASE_OPEN_TAG + BODY_OPEN_TAG + OPEN_TAG;
		for(Alert i: alertas){
			ccr = ccr + i.constructCcrString();
		}
		
		ccr = ccr + CLOSE_TAG + BODY_CLOSE_TAG + BASE_CLOSE_TAG;
		return ccr;
	}

	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	/**
	 * @param alertas the alertas to set
	 */
	public void setAlertas(List<Alert> alertas) {
		this.alertas = alertas;
	}

	/**
	 * @return the alertas
	 */
	public List<Alert> getAlertas() {
		return alertas;
	}
}
